﻿
using Bootstrap5.Abstractions;

using Microsoft.AspNetCore.Components;

namespace Bootstrap5
{
    /// <summary>
    /// 适用于 <see cref="Alert"/> 的醒目超链接。
    /// </summary>
    [HtmlTag("a")]
    public class AlertLink:BootstrapComponentBase,IHasChildContent
    {
        /// <summary>
        /// 初始化 <see cref="AlertLink"/> 类的新实例。
        /// </summary>
        public AlertLink()
        {

        }

        [Parameter] public RenderFragment ChildContent { get; set; }

        protected override void CreateCssClass(ICssClassBuilder builder)
        {
            builder.Add("alert-link");
        }
    }
}
